﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Unit.aspx.cs" Inherits="WinnerCMS.WebUI.Admin.Shop.Unit" %>

<%@ Register Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" TagPrefix="uc1" %>
<!doctype html>
<html>
<head id="Head1" runat="server">
    <title>单位管理</title>
    <meta charset="utf-8"/>
    <meta http-equiv="Pragma" content="no-cache"/>
    <%: Scripts.Render("~/Scripts/AdminBase") %>
    <%: Styles.Render("~/Content/Bootstrap/css") %>
</head>
<body>


<form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server"/>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table style="width: 98%;" border="0" cellpadding="4" cellspacing="0" id="NavigationPath">
                <tr>
                    <td style="width: auto">
                        <asp:Label ID="lblPath" runat="server"></asp:Label>
                    </td>
                    <td style="text-align: right; width: auto;">
                        <a href="Unit.aspx?Action=Add&ModelId=<%= Request["ModelId"] %>">添加单位</a>
                    </td>
                </tr>
            </table>
            <asp:Panel ID="Panel1" runat="server">
                <table cellspacing="0" cellpadding="6" width="100%" border="0">
                    <tr>
                        <td height="25" width="30%" align="right">
                            单位：
                        </td>
                        <td height="25" align="left">
                            <asp:TextBox ID="txtName" runat="server" Width="250px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="请输入！"
                                                        ControlToValidate="txtName">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">
                            &nbsp;
                        </td>
                        <td height="25" align="left">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td height="25" align="right">
                            &nbsp;
                        </td>
                        <td height="25" align="left">
                            <asp:Button ID="btnOK" runat="server" Text="确定" Cssclass="btn btn-default" OnClick="btnOK_Click"/>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:Panel ID="Panel2" runat="server">
                <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" GridLines="None" CssClass="table table-bordered table-condensed table-hover"
                              DataKeyNames="ID" OnRowDataBound="GV_List_RowDataBound" OnRowDeleting="GV_List_RowDeleting"
                              OnRowCommand="GV_List_RowCommand">
                    <Columns>
                        <asp:TemplateField HeaderText="选择">
                            <HeaderTemplate>
                                <input name="chkHeader" onclick=" javascript:SelectAll(this); " type="checkbox" value="chkHeader"/>
                            </HeaderTemplate>
                            <HeaderStyle Width="30px"/>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            <ItemTemplate>
                                <asp:CheckBox ID="CheckBox1" runat="server"/>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="ID" HeaderText="ID">
                            <HeaderStyle Width="40px"/>
                        </asp:BoundField>
                        <asp:BoundField HeaderText="单位" DataField="Name"/>

                        <asp:CommandField ShowDeleteButton="True" HeaderText="删除">
                            <ItemStyle HorizontalAlign="Center" Width="40px"/>
                        </asp:CommandField>
                    </Columns>
                    <HeaderStyle CssClass="HeaderStyle"/>
                </asp:GridView>
                <div class="WorkArea">
                    <asp:Button ID="btnDelSeletedID" runat="server" Text="删除选中" Style="cursor: pointer"
                                EnableViewState="False" Cssclass="btn btn-default">
                    </asp:Button>
                    &nbsp;&nbsp; |&nbsp;&nbsp;
                </div>

                <WinnerCMS:PageNavigation ID="PageNavigation1" runat="server" SubmitButtonclass="btn btn-default" OnPageChanging="PageNavigation1_PageChanging"
                                          PageSize="15">
                </WinnerCMS:PageNavigation>

            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
</form>
</body>
</html>